<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/30
 * Time: 16:54
 */
global $_W,$_GPC;
if($_W['isajax']){
    $userId = $_GPC['userId'];
    $data = array();
    $data['is_receive'] = "1";
    $data['receive_time'] = TIMESTAMP;
    pdo_update('meepo_xianchang_lottory_user',$data,array('user_id'=>$userId));
    pdo_delete("meepo_xianchang_recognize");
    die(json_encode(error(0,'领奖成功')));
}